package cn.decorator;

/**
 * Created by jt on 2018/3/19.
 */
public class AbstractDecorator  implements ICooking{
    private ICooking cooking ;
    public AbstractDecorator(ICooking cooking){
        this.cooking = cooking ;
    }

    @Override
    public void vegetables() {
        this.cooking.vegetables() ;
    }

    @Override
    public void name() {
        this.cooking.name() ;
    }
}
